package cate.game.role.res.guild.msg.basic.GBanner;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdGuild;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "重置旗帜属性 の 请求")
public class ResetBannerReq implements MsgInput {
    @NoteField(value = "旗帜背景")
    public int background;
    @NoteField(value = "旗帜图标")
    public int pattern;


    @Override
    public MsgConfig conf() {
        return MsgIdGuild.RESET_BANNER_REQ;
    }

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getRes().guild.getGuild().basic.setBanner(pattern, background);
    }
}
